//
//  NSCustomTipView.h
//  MacDevTest
//
//  Created by lbxia on 2022/9/13.
//  Copyright © 2022 com.lbx. All rights reserved.
//

#import <Cocoa/Cocoa.h>


typedef NS_ENUM(NSInteger, NSCustomTipType) {

    NSCustomTipType_Success = 0,
    NSCustomTipType_Fail = 1,
    NSCustomTipType_Progress = 2,
    NSCustomTipType_CustomProgress = 3,

};


typedef NS_ENUM(NSInteger, NSCustomTipPostion) {
    
    NSCustomTipPostion_Top = 0,
    NSCustomTipPostion_Center = 1,
    NSCustomTipPostion_Bottom = 2,
    NSCustomTipPostion_None = 3
};

@interface NSCustomTipView : NSView



/// 显示信息，默认2s后消失,progress类型除外，需要自行调用消失接口
/// @param tipType tipType description
/// @param pos pos description
/// @param content content description
+ (NSCustomTipView*)showWithTipType:(NSCustomTipType)tipType pos:(NSCustomTipPostion)pos content:(NSString*)content;


/// 显示信息
/// @param tipType 信息类型
/// @param pos 信息显示未知
/// @param posDiff 位置差
/// @param content 信息内容
/// @param afterSeconds 几秒后弹框消失，如果是进度条类型，该参数无效，需要自行调用disAppear接口
+ (NSCustomTipView*)showWithTipType:(NSCustomTipType)tipType
                                pos:(NSCustomTipPostion)pos
                            posDiff:(CGFloat)posDiff
                            content:(NSString*)content
                       afterSeconds:(NSInteger)afterSeconds;


- (void)disAppear;


- (double)getCustomProgress;

- (void)setCustomProgress:(double)progress;

@end


